<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="projectBase__PUBLIC__/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="projectBase__PUBLIC__/js/xheditor-1.1.13-zh-cn.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<style type="text/css">
body{margin:0;padding:0;}
	</style>
	<style>
#addMenu-form div { padding:5px;  }
#addMenu-form input { width:15em; padding:4px; border:1px solid #CCC; }
#addMenu-form input:focus { border-color:#426DC9; }
#addMenu-form .login-form-error { background:#FFFBFC; border-color:#F00 !important; }
</style>
<script type="text/javascript">
function addMenu(){
	
	var contentID=$('#contentID').val();
	var content=$('#content').val();
	var menuID=$('#menuID').val();
	$.ajax({
		 type: "POST",
		  url: '__APP__/AddMenu/editMenuContent',
		  dateType: "json",
		  data:{CONTENT_ID:contentID,CONTENT:content,menuID:menuID},
		  success: function(data) {
			 var re= eval("(" + data + ")");
		  if(re.status=='1'){
			  var api = frameElement.api;
				//api.parent().location.reload(true);
				api.opener.location.reload();
				api.close();
		  }
		  }
		});
}
$(document).ready(function(){
	
	
	
	$('#commit').click(function(){
		addMenu();
	});
	
})
</script>
</head>

<body>
<div>
<form>
<input type="hidden" name="contentID" value="{$current.CONTENT_ID}" id="contentID" />
<input type="hidden" name="menuID" value="{$current.MENU_ID}" id="menuID"/>
<textarea name="content" id="content" class="xheditor {width:'800',height:'200'}">{$current.MENU_CONTENT}</textarea>
<BR>
 <input type="button"  id="commit" value="确定" style="width:40px;height:25px;float:right;margin-top:5px;margin-right:3px"/>
</form>
</div>
</body>
</html>